package com.ben.ffy;

public class Constant {
	public static int SCREEN_WIDTH;//屏幕的宽
	public static int SCREEN_HEIGHT;//屏幕的高
	
	public static int BIG_FISH_WIDTH;//大鱼的宽
	public static int BIG_FISH_HEIGHT;//大鱼的高
	public static int MID_FISH_WIDTH;//中间鱼的宽
	public static int MID_FISH_HEIGHT;//中间鱼的高
	public static int SMALL_FISH_WIDTH;//小鱼的宽
	public static int SMALL_FISH_HEIGHT;//小鱼的高
	
	public static int FISHING_NET_WIDTH;//渔网的宽
	public static int FISHING_NET_HEIGHT;//渔网的高
	
	public static int FISHING_TANK_WIDTH;//鱼缸的宽
	public static int FISHING_TANGK_HEIGHT;//鱼缸的高
	
	public static int TRANSPARENT_WINDOW_HEIGHT;//半透明窗口的高
	public static int TRANSPARENT_WINDOW_WIDTH;//半透明窗口的宽
	
	public static int BIG_FISH_SPEED=3;//大鱼的步进
	public static int MID_FISH_SPEED=4;//中鱼的步进
	public static int SMALL_FISH_SPEED=5;//小鱼的步进
	public static int INCREACE_FISH_SPEED=5;//鱼放回水中后，增加的步进
	
	public static int FORWARD_STEP=15;//前进状态的步数(默认为25)
	public static int FORWARD_MAX_STEP=35;//前进状态的最大步数(默认为35)
	public static int STOP_STEP=20;//鱼处于停止状态的步数
	
	public static int BOARD_HEIGHT;//木板的高度为屏幕高度的1/8
	public static int BAR_Y;//得分条的Y坐标
	public static int SCORE_COUNT=0;//得分（每次渔网中有几条鱼）
	
	public static int[][] TRANSPARENT_POSITION;//半透明窗口左上点坐标
	
	public static void changeRadio()
	{
		BOARD_HEIGHT=SCREEN_HEIGHT/8;//木板的高度为屏幕高度的1/8
		BAR_Y=2*SCREEN_HEIGHT/32;//得分条的Y坐标
		
		BIG_FISH_WIDTH=SCREEN_WIDTH/6;//大鱼的宽
		BIG_FISH_HEIGHT=3*BIG_FISH_WIDTH/4;//大鱼的高
		MID_FISH_WIDTH=SCREEN_WIDTH/10;//中间鱼的宽
		MID_FISH_HEIGHT=2*MID_FISH_WIDTH/3;//中间鱼的高
		SMALL_FISH_WIDTH=SCREEN_WIDTH/13;//小鱼的宽
		SMALL_FISH_HEIGHT=4*SMALL_FISH_WIDTH/5;//小鱼的高
		
		FISHING_NET_WIDTH=SCREEN_WIDTH/5;//渔网的宽
		FISHING_NET_HEIGHT=FISHING_NET_WIDTH;//渔网的高
		
		FISHING_TANK_WIDTH=SCREEN_WIDTH/5;//鱼缸的宽
		FISHING_TANGK_HEIGHT=FISHING_TANK_WIDTH*238/300;//鱼缸的高
		
		TRANSPARENT_WINDOW_HEIGHT=SCREEN_HEIGHT/4;//半透明窗口的高
		TRANSPARENT_WINDOW_WIDTH=SCREEN_WIDTH/4;//半透明窗口的宽
		
		TRANSPARENT_POSITION=new int[][]{
				{0,0},
				{3*SCREEN_WIDTH/4,0},
				{0,3*SCREEN_HEIGHT/4},
				{3*SCREEN_WIDTH/4,3*SCREEN_HEIGHT/4}
		};
	}
}
